package com.deuwise.system.entity.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.baomidou.mybatisplus.annotations.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Copyright
 *
 * @author chenwenchao
 * @date 2019/8/16
 * Description:
 */
@Data
public class LogDoExport extends BaseRowModel {

    @ApiModelProperty("序号")
    private Integer index;

    /**用户名称*/
    @ApiModelProperty("用户名称")
    @TableField("user_name")
    @ExcelProperty(value ="用户名称",index = 0)
    private String userName;

    /**用户操作*/
    @ApiModelProperty("用户操作")
    @TableField("operation")
    @ExcelProperty(value ="用户操作",index = 0)
    private String operation;

    /**响应时间*/
    @ApiModelProperty("响应时间")
    @TableField("time")
    @ExcelProperty(value ="响应时间",index = 1)
    private Integer time;

    /**请求方法*/
    @ApiModelProperty("请求方法")
    @TableField("method")
    @ExcelProperty(value ="请求方法",index = 2)
    private String method;

    /**传递参数*/
    @ApiModelProperty("传递参数")
    @TableField("params")
    @ExcelProperty(value ="传递参数",index = 3)
    private String params;

    /**ip地址*/
    @ApiModelProperty("ip地址")
    @TableField("ip")
    @ExcelProperty(value ="ip地址",index = 4)
    private String ip;

    /**创建时间*/
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @ExcelProperty(value ="创建时间",index = 5)
    private Date createTime;

    @ApiModelProperty("状态 0错误，1正常，2登录")
    @TableField("status")
    @ExcelProperty(value ="创建时间",index = 6)
    private String status;

    @ApiModelProperty("请求url")
    @ExcelProperty(value ="请求url",index = 7)
    private  String url;

    @ApiModelProperty("错误信息")
    @TableField("exception")
    @ExcelProperty(value ="错误信息",index = 8)
    private  String exception;
}
